<html>
<head>
    <link rel="canonical" href="{% block seo_link %}{% endblock %}">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1">
    <title>{% block title %} {% endblock %}</title>
    <meta name="keywords" content="{% block keywords %}{% endblock %}">
    <meta name="description" content="{% block description %}{% endblock %}">
    <link href="{{ url_for('static',filename='tl_cms/css/base.css') }}" rel="stylesheet" type="text/css">
    <link href="{{ url_for('static',filename='tl_cms/css/style.css') }}" rel="stylesheet" type="text/css">
    <link href="{{ url_for('static',filename='tl_cms/css/porama.css') }}" rel="stylesheet" type="text/css">
    <script src="{{ url_for('static',filename='tl_cms/js/jquery.min.js') }}"></script>
    <script src="{{ url_for('static',filename='tl_cms/js/script.js') }}"></script>
    <script src="{{ url_for('static',filename='tl_cms/js/jquery.porama.js') }}"></script>
</head>
<body>
<div class="wrapper-outer">
    <div class="topBar">
        <div class="wrapper">
            <div class="t-fl">{{ g.sys.web_topBar }}</div>
            <div class="t-fr">
                {% if g.other.adCooperation.status %}
                    <a href="{{ url_for('web_bp.adCooperation') }}">广告合作</a>
                {% endif %}
                {% if g.other.contribute.status %}
                    <a href="{{ url_for('web_bp.contribute') }}">投稿说明</a>
                {% endif %}
            </div>
        </div>
    </div>
    <!--topBar end-->
    <div class="header clearfix">
        <div class="logo">
            <a href="{{ g.sys.web_domain }}" title="{{ g.sys.web_name }}">
                <img src="{{ g.sys.web_logo or url_for('static',filename='tl_cms/images/default_logo.png') }}" alt="{{ g.sys.web_name }}">
            </a>
        </div>
        <div class="search-fr">
            <div class="ah_nav_zuo_lim">
                <form action="{{ url_for('web_bp.search') }}" method="get" id="search">
                    <input name="keywords" value="请输入关键字" onblur="if(this.value==''){this.value='请输入关键字';}"
                           onfocus="if(this.value=='请输入关键字'){this.value=''}" class="seach_cha" type="text">
                    <input value="搜索" class="seach_dian" type="submit">
                </form>
            </div>
        </div>
        <!--navbar end-->
        <div class="marginrl">
            <div class="bk4"></div>
            {% for ad in g.other.ad %}{% if ad.id==1 and ad.status==1 %}{{ ad.ad_code|safe }}{% endif %}{% endfor %}
        </div>
    </div>
    <div id="pjax-con" class="wrapper">
        <div class="navbar clearfix">
            <div class="pull-left">
                <div class="navbg">
                    <div class="col960">
                        <ul id="navul" class="cl">
                            {% block nav %}
                                <li class="item common">
                                    <a href="{{ url_for('web_bp.tl_index') }}" title="{{ g.sys.web_name }}">首页</a>
                                </li>
                                {% for column in g.column|sort(attribute='column_order', reverse=false) %}
                                    <li class="item {% if column.uuid==g.col_first.uuid %} navhome {% else %} common {% endif %}">
                                        <a href="{% if column.column_link %}{{ column.column_link }}{% else %}{{ url_for('web_bp.list_article',uuid=column.uuid) }}{% endif %}">{{ column.column_name }}</a>
                                    </li>
                                {% endfor %}
                            {% endblock %}

                        </ul>
                    </div>
                </div>
            </div>
            <div class="pull-right">
                <ul>
                    <li class="qq">
                        <a href="http://wpa.qq.com/msgrd?v=3&amp;uin={{ g.sys.web_contact_qq }}&amp;site=qq&amp;menu=yes"
                           title="QQ联系" target="_blank">QQ联系</a></li>
                </ul>
            </div>
        </div>
        {% block nav_ad %} {% endblock %}
        <div class="wrapper clearfix pt10">
            <div class="con-left">
                {% block content_left %}{% endblock %}
            </div>
            <div class="con-right">
                <ul id="sidebar">
                    <li class="box-b mb10">
                        <div class="zz-list lh200 p10">
                            <ul class="diaporama1">
                                {% for document in g.document[::-1][:10] %}
                                    {% if document.is_focus %}
                                        <li>
                                            <a rel="external nofollow"
                                               href="{{ url_for('web_bp.article_article',uuid=document.uuid) }}"
                                               target="_blank" title="{{ document.title }}">
                                                <img src="{{ document.thumb_img }}" alt="{{ document.title }}"
                                                     title="{{ document.title[:20] }}"/>
                                            </a>
                                        </li>
                                    {% endif %}
                                {% endfor %}
                            </ul>
                        </div>
                    </li>
                    {% for ad in g.other.ad %}{% if ad.id==4 and ad.status==1 %}
                        <li class="box-b mb10">
                            <div class="zz-list lh200 p10">
                                {{ ad.ad_code|safe }}
                            </div>
                        </li>
                    {% endif %}{% endfor %}
                    <li class="box-b mb10">
                        <span class="arrow-right"></span>
                        <h3 class="title pt10 pl10"><span>随机推荐</span></h3>
                        <ul class="ullist2">
                            {% for document in g.random_document %}
                                <li><a href="{{ url_for('web_bp.article_article',uuid=document.uuid) }}"
                                       title="{{ document.title }}"><span>{{ document.title[:22] }}</span></a>
                                </li>
                            {% endfor %}
                            <!-- 12个 -->
                        </ul>
                    </li>
                    <li class="box-b mb10">
                        <span class="arrow-right"></span>
                        <h3 class="title pt10 pl10"><span>本周热门</span></h3>
                        <ul class="ullist2">
                            {% for document in (g.document |sort(attribute='clicks', reverse=true))[:10] %}
                                <li><a href="{{ url_for('web_bp.article_article',uuid=document.uuid) }}"
                                       title="{{ document.title }}"><span>{{ document.title[:22] }}</span></a>
                                </li>
                            {% endfor %}
                            <!-- 10个 -->
                        </ul>
                    </li>
                    <li class="box-b mb10">
                        <span class="arrow-right"></span>
                        <h3 class="title pt10 pl10"><span>最新发布</span></h3>
                        <ul class="ullist2">
                            {% for document in (g.document |sort(attribute='id', reverse=true))[:10] %}
                                <li><a href="{{ url_for('web_bp.article_article',uuid=document.uuid) }}"
                                       title="{{ document.title }}"><span>{{ document.title[:22] }}</span></a>
                                </li>
                            {% endfor %}
                            <!-- 10个 -->
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
        <div class="bk8"></div>
        <div class="wrapper ibtad">
        </div>
        {% block frend_link %} {% endblock %}
    </div>
    <div style="height:20px; clear:both;"></div>
    <!--footer -->
</div>
<div class="wrapper-outer">
    <div class="footer">
        <div class="wrapper">
            <div class="col">
                <div class="span-c"><img src="{{ g.sys.web_QrCode }}" width="118" height="118"></div>
                <div class="span-a">
                    <p class="span-b"><a href="{{ g.sys.web_domain }}" style="margin-left:0">{{ g.sys.web_name }}</a> |
                        <a href="http://wpa.qq.com/msgrd?v=3&amp;uin={{ g.sys.web_contact_qq }}&amp;site=qq&amp;menu=yes"
                           target="_blank">联系我们</a> |
                        <a href="{% if g.other.feedback.status %}{{ url_for('web_bp.feedback') }}{% endif %}"
                           target="_blank">留言建议</a> |
                        <a href="{% if g.other.infringement.status %}{{ url_for('web_bp.infringement') }}{% endif %}"
                           target="_blank">侵权投诉</a> |
                        <a href="{% if g.other.adCooperation.status %}{{ url_for('web_bp.adCooperation') }}{% endif %}"
                           target="_blank">广告合作</a>
                    </p>
                    <p>©2019-至今 {{ g.sys.web_name }} All right reserved. 版权所有 <span
                            style="padding-left:10px;"><br></span></p>
                    <p>Powered by TL_CMS &nbsp;&nbsp;站长邮箱:{{ g.sys.web_contact_email }}</p>
                    <p>ICP备案: <a href="http://www.beian.miit.gov.cn" target="_blank">{{ g.sys.web_record }}</a> &nbsp;&nbsp;{{ g.sys.web_stat }}
                    </p>
                </div>
            </div>
        </div>
    </div>
</div>
<a id="gotop" ></a>
</body>
</html>